﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharpSoft.Documentation.Html.CSS
{
    /// <summary>
    /// 描述Css代码块
    /// </summary>
    public sealed class CssBlock
    {
        public CssBlock(string @class,CssSelector[] selecters,IDictionary<string,string> props)
        {
            _Class = @class;
            _Selectors = selecters;
            _Properties = props;
        }

        private string _Class;
        /// <summary>
        /// 获取此Css代码块的Css类名
        /// </summary>
        public string @Class
        {
            get { return _Class; } 
        }
        

        private CssSelector[] _Selectors;
        /// <summary>
        /// 获取此CSS代码块的拥有的所有选择器
        /// </summary>
        public CssSelector[] Selectors
        {
            get { return _Selectors; }
        }

        private IDictionary<string,string> _Properties;
        /// <summary>
        /// 获取此Css代码块描述所有属性
        /// </summary>
        public IDictionary<string,string> Properties
        {
            get { return _Properties; }
        }
        
    }
}
